import java.math.BigDecimal;

public class qweasd {
    public static void main(String[] args) {
        double d = 12.12;
        BigDecimal a =new BigDecimal(d);
        double v = a.doubleValue();
        System.out.println(v);
    }
}
